<?php

/**
 * midia components.
 *
 * @package    sispatr
 * @subpackage midia
 * @author     Creatix
 * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class midiaComponents extends sfComponentsCreatix
{
	public function executeFiltro()
    {
    	    
    }

    public function executeArquivos()
    {
        $id_name    = "id_".strtolower($this->form->getModelName());
        $id_value   = "getId".$this->form->getModelName();

        $this->reference    = $id_name;
        $this->ref_value    = $this->form->getObject()->$id_value();

        $this->midia  = MidiaTable::carregarMidia(array($id_name=>$this->ref_value));

    }
    
    public function executeNew()
    {
    }
    
    public function executeGaleria()
    {
    }
}